<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>错题库</title>
    <%@include file="../core/head.jsp"%>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" href="${ctx }/css/core.css" type="text/css">
	<link rel="stylesheet" href="${ctx }/css/exam.css" type="text/css">
	<link rel="stylesheet" href="${ctx }/css/buttons.css" type="text/css">
    <script type="text/javascript" src="${ctx }/js/FusionCharts.js"></script>
	
    <script type="text/javascript">
	 	
	    $(function(){
	    	// var dataxml = "<chart pieYScale='40' decimals='1' showLabels='1' useRoundEdges='1' formatNumberScale='0' baseFont='宋体' showValues='1' caption='总队 座落.供水方式类型' pieSliceDepth='50' baseFontSize='12' slicingDistance='60' xAxisName='供水方式类型' toolTipSepChar=' ' pieRadius='220' ><set name='目标单位供水' value='1.0' link='' color='AFD8F8'/><set name='自拉水' value='2.0' link='' color='F6BD0F'/><set name='自抽水' value='34.0' link='' color='8BBA00'/><set name='市政供水' value='72.0' link='' color='FF8E46'/></chart>";
	        var dataxml = "${staXmls} "; 
	          var myChart = new FusionCharts("${ctx}/charts/Column3D.swf", "myChartId", "100%", 400);    
			  myChart.setDataXML(dataxml);    
			  myChart.render("chartdiv");
	     });
    </script> 
<style type="text/css">
	.help {
		display: block;
		background: #f2f2f2;
	}
</style>
  </head>
  
  <body>
  <%@include file="top.jsp"%>
	 <div class="width center radius menuPanel" >
	 	<div class="examname">
		<h1> 错题库（${fn:length(questions) }）</h1>
	</div>
		<div>		
			 <div id="chartdiv" align="center" > </div>
		</div>
		<div class="context">
			<c:forEach var="quest"  varStatus="temp" items="${questions}">
			<div class="question" id="${quest.id}">
			<input type="hidden"   id="answer${quest.id}"/>
			<span>[ 试题编号：${quest.no }&nbsp;&nbsp;&nbsp;&nbsp;章节：<z:dic code="${quest.chapter }"/> ]</span>
				<ul>
					<li class="english">
						<dt class="title">
							<span class="no">${temp.index+1}.</span>&nbsp;<c:out value="${quest.enSummary }"/>
						</dt> 
						<c:forEach var="opt" items="${quest.options }">
							<dd class="option">
								<label>	${opt.no}.&nbsp;<span><c:out value="${opt.enSummary }"/></span></label>
							</dd>
						</c:forEach>
					</li>
					<li class="chinese">
						<dt class="title">
							<span class="no">${temp.index+1}.</span>&nbsp;
							<c:out value="${quest.cnSummary }"/>
						</dt> 
						<c:forEach var="opt"  items="${quest.options }">
						<dd class="option">
							<label>${opt.no}.&nbsp;<span><c:out value="${opt.cnSummary }"/></span></label>
						</dd>
						</c:forEach>
					</li>
				</ul>
				<div class="help radius" style="display: block;" align="left">
						<div class=" left">
							<span class="answer" style="display: inline;">正确答案：	<c:out value="${quest.answer }"/>  </span>
							<span style="color: #999 ;margin-left: 30px;" >(错误的答案：<c:out value="${quest.wrong.userAnswer }"/> &nbsp; 
							 次数：<c:out value="${quest.wrong.count}"/>)</span>
						</div> 
						
						<div  class="right" style="color:black;margin-right: 20px;"> 章节： <z:dic code="${quest.chapter}"  />	</div>
						<div class="analysis clear" style="background: white;min-height: 50px;">
							<c:out value="${quest.analysis }"/>
						</div>
				</div>
			</div>
			</c:forEach>
		</div>
	 </div>
	<%@include file="../core/bottom.jsp"%>
  </body>
</html>
